<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Transat | Administration</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/reset.css'}">
	<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/admin.css'}" />
	#{get 'moreStyles' /}
	<link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.ico'}" />
	<script src="@{'/public/javascripts/jquery-1.6.4.min.js'}"></script>
	<script src="http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js"></script>
</head>
	
<body id="admin">
	
	<div id="header">
		<h1 id="admin_title">Administration Transat</h1>	
		<a href="@{Secure.logout}"><div id="admin_logout">Déconnexion</div></a>
		<a href="@{Application.index}"><div id="retour_site">Retour au site</div></a>				
	</div>
		
	<div id="admin">
			
		<ul id="adminMenu">
			#{secure.check 'admin'}
				<div class="menu_unit">
					<h2>Utilisateurs</h2>
					<a href="@{AdminUtilisateur.list()}"><li>Utilisateurs</li></a>
					<a href="@{AdminAdmin.list()}"><li>Administrateurs</li></a>
				</div>
					
				<div class="menu_unit">
					<h2>Bateaux</h2>
					<a href="@{AdminBateau.list()}"><li>Bateaux</li></a>
					<a href="@{AdminCouleurs.list()}"><li>Couleurs</li></a>
					<a href="@{AdminVoile.list()}"><li>Voiles</li></a>
					<a href="@{AdminSpi.list()}"><li>Spis</li></a>
					<a href="@{AdminGrandVoile.list()}"><li>GrandVoiles</li></a>
					<a href="@{AdminFoc.list()}"><li>Focs</li></a>
					<a href="@{AdminManoeuvre.list()}"><li>Manoeuvres</li></a>
					<a href="@{AdminModeleBateau.list()}"><li>Modele Bateau</li></a>
				</div>
			
				<div class="menu_unit">
					<h2>Courses</h2>
					<a href="@{AdminModele_course.list()}"><li>Modèles de course</li></a>	
					<a href="@{AdminCourse.list()}"><li>Courses</li></a>	
					<a href="@{AdminChallenge.list()}"><li>Challanges</li></a>
					<a href="@{AdminParticipe.list()}"><li>Participations</li></a>
					<a href="@{AdminResultat.list()}"><li>Resultats</li></a>
				</div>	
			
				<div class="menu_unit">
					<h2>Cartes</h2>
					<a href="@{AdminCarte.list()}"><li>Cartes</li></a>
					<a href="@{AdminCoordonnee.list()}"><li>Coordonnées</li></a>		
					<a href="@{AdminVille.list()}"><li>Villes</li></a>
					<a href="@{AdminCondition_meteo.list()}"><li>Conditions météo</li></a>	
				</div>		
			
				<div class="menu_unit">
					<h2>Forum</h2>
					<a href="@{AdminCategorie_forum.list()}"><li>Catégories du forum</li></a>
					<a href="@{AdminSujet.list()}"><li>Sujets</li></a>
					<a href="@{AdminMessage.list()}"><li>Messages</li></a>
				</div>				
			#{/secure.check}
		</ul>

		#{doLayout /} 
	</div>
	
	<div id="footer">
		Transat
	</div>
</body>
</html>